
<div id="status"></div>
<div class="shopp">
    <table>
{foreach from=$pages key=myId item=i}
{strip}
        <tr >
            <td>{$i->getClientId()}</td>
            <td>{$i->getName()}</td>
            <td>{$i->getSurname()}</td>
            <td>{$i->getEmail()}</td>
            <td>{$i->getAge()}</td>
            <td><input type="checkbox" class="target" id="target:{$i->getClientId()}"/></td>
        </tr>
{/strip}
{/foreach}
    </table>
</div>
{literal}<script type="text/javascript">
$(document).ready(function(){
        $("input.target").click(function(){

           $.post("index.php", {  site: 'mailing', action: 'updateTarget', Target: this.id });
       
        });
        var Timer  = '';
        var selecter = 0;
        var Main =0;

        bring(selecter);

});
function showstatus(output){
    $("#status").html(output).show();
    }
function bring ( selecter )
{
        $('div.shopp:eq(' + selecter + ')').stop().animate({
                opacity  : '1.0',
                height: '700px'

        },300,function(){

                if(selecter < 6)
                {
                        clearTimeout(Timer);
                }
        });

        selecter++;
        var Func = function(){ bring(selecter); };
        Timer = setTimeout(Func, 20);
}

</script>
{/literal}